<?xml version="1.0" encoding="<%= Site.encoding %>"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= get_pref('LANGUAGE') %>">

<%# please don't remove this! -%>
<%= Site.powered_by_comment %>
<%# please don't remove this! -%>
	
	<head profile="http://gmpg.org/xfn/11">
		<title><%= Site.site_name %>.<%= ' ' + $page_title %></title>
		<meta name="robots" content="index,follow"/>
		<meta name="mssmarttagspreventparsing" content="true"/>
        <%= Site.default_meta_tags %>
		<%= Site.icbm_meta_tag %>
		<%= Site.esbn_meta_tag %>
		<%= Site.issn_meta_tag %>
		<%= auto_discovery_link_tag :rss, Site.rss_url, :title => 'Primary Feed' %>
		<%= theme_stylesheet_link_tag 'style.css', :title => "Grid Focus", :media => 'screen' %>
		<%= theme_javascript_include_tag 'site' %>
		<%= theme_javascript_include_tag 'prototype' %>
	</head>
	
	<body<%= Site.body_id %>>

		<%= render :partial => 'includes/browser_check' %>

		<div id="wrapper"><a name="top"></a>
			<div id="masthead" class="fix">
				<h1><%= Site.site_name_linked %></h1>
				<div id="authorBlurb">
					<%= theme_image_tag 'avatar.png', :alt => "Avatar" %>
					<p id="authorIntro"><%= Site.slogan %></p>
				</div>
			</div>
			<ul class="nav fix">
				<li><a href="<%= Site.full_url %>" title="Return to the the frontpage">Home<br /><span>Frontpage</span></a></li>
				<li><a href="javascript:;" onmousedown="showArchives();" title="View the archives">Archives<br /><span>Browse freely</span></a></li>
				<li><a href="#" title="Link title">Link<br /><span>Short Desc</span></a></li>
				<li><a href="#" title="Link title">Link<br /><span>Short Desc</span></a></li>
				<li><a href="#" title="Link title">Link<br /><span>Short Desc</span></a></li>
				<li><a href="<%= Site.rss_url %>" title="Subscribe to the main feed via RSS">RSS<br /><span>Syndicate</span></a></li>
				<li class="skip"><a href="#main" title="Skip to content">Main<br /><span>Skip to content</span></a></li>
			</ul>
			<div id="archives" class="fix" style="display: none;"> 
				<ul class="fix">
					<%= "<li>" + Site.list_tags_linked(@tags,'','',Site.archive_token,"</li>\n<li>") + "</li>" %>
				</ul>
			</div>
			<div id="mid" class="fix">
				<div id="mainCol" class="fix"><a name="main"></a>
					<%= yield %>
				</div>
				<%= render :partial => 'includes/second' %>
				<%= render :partial => 'includes/third' %>
			</div>
			<div id="footer">
				<ul class="nav fix">
					<li><a href="<%= Site.full_url %>" title="Return to the the frontpage">Home<br /><span>Frontpage</span></a></li>
					<li><a href="#" title="Link title">Link<br /><span>Short Desc</span></a></li>
					<li><a href="#" title="Link title">Link<br /><span>Short Desc</span></a></li>
					<li><a href="#" title="Link title">Link<br /><span>Short Desc</span></a></li>
					<li><a href="<%= Site.rss_url %>" title="Subscribe to the main feed via RSS">RSS<br /><span>Syndicate</span></a></li>
					<li class="top"><a href="#top" title="Return to the top">Top<br /><span>Return to top</span></a></li>
				</div>
				<p>All content &copy;<%= Site.copyright_range %> <%= Site.site_primary_author %>, all rights reserved.</p>
			</div>
		</div>
		<%= Site.mint_tag %>
	</body>
	
<%# please don't remove this! -%>
<%= Site.version_number_comment %>
<%# please don't remove this! -%>

</html>